#ifndef __CONSTDEF_H__
#define __CONSTDEF_H__

#define U_INSTALLDIR			L"\\Program Files\\MShare\\"

#define U_MYMEDIADATADIR		L"\\MyMediaData\\"
#define A_MYMEDIADATADIR		"\\MyMediaData\\"

#define U_MYMEDIATMPFILE		L"\\MyMediaData\\tmp"
#define A_MYMEDIATMPFILE		"\\tmp"

//#define A_MYMEDIADATALIST		"\\MyMediaData\\list.txt"

#define U_TEMPFILEDIR			L"\\Program Files\\MShare\\temp\\"
#define A_TEMPFILEDIR			"\\Program Files\\MShare\\temp\\"

#define U_TEMPUSERLIST			L"\\Program Files\\MShare\\temp\\userlist.txt"
#define A_TEMPUSERLIST			"\\Program Files\\MShare\\temp\\userlist.txt"

#define U_TEMPMEDIALIST			L"\\Program Files\\MShare\\temp\\medialist.txt"
#define A_TEMPMEDIALIST			"\\Program Files\\MShare\\temp\\medialist.txt"

//#define U_TEMPMEDIAFILE			L"\\Program Files\\MShare\\temp\\tmp.mp4"
//#define A_TEMPMEDIAFILE			"\\Program Files\\MShare\\temp\\tmp.mp4"

#define U_TEMPMEDIAFILE			L"\\tmp.mp4"
#define A_TEMPMEDIAFILE			"\\tmp.mp4"

#define U_MEDIAEXT				L"mp4"
#define A_MEDIAEXT				"mp4"

#define U_MEDIAPLAYERNAME		L"\\Program Files\\MShare\\CorePlayer\\player.exe" //L"\\Program Files\\MMediaPlayer\\player.exe"

#define  U_CONFIGNAME			L"config.ini"


//for server
#define A_URL_DATA				"/mshare/data"
#define A_USERLISTFILENAME		"userlist.txt"
#define A_MEDIALISTFILENAME		"medialist.txt"

#define A_SRVIP					"59.108.23.204"
#define A_SRVURL				"/mshare"	
#define A_URL_GETUSERLIST		"getUserlist.php"
#define A_URL_GETMEDIALIST		"getMedialist.php"
#define A_URL_GETMEDIAFILE		"getMediafile.php"
#define A_URL_UPLOADMEDIAFILE	"upload_file_ex.php"	

#define CMD_GETUSERLIST			1000
#define CMD_GETMEDIALIST		1001
#define CMD_GETMEDIAFILE		1002
#define CMD_UPLOADMEDIAFILE		1003	

struct TUserInfo 
{
	char userName[32];
	char userPsw[32];
	char curFriend[32];
};

struct TClientInfo 
{
	char srvIP[128];
};

#endif	//__CONSTDEF_H__